package com.itbbfx.service.impl;

import com.itbbfx.entity.Warehuose;
import com.itbbfx.mapper.WarehouseMapper;
import com.itbbfx.service.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class WarehouseServiceImpl implements WarehouseService {
    @Autowired
    private WarehouseMapper warehouseMapper;


    @Override
    public List<Warehuose> queryAll() {
        return warehouseMapper.queryAll();
    }

    @Override
    public List<Warehuose> findAllWarehuose(Warehuose warehuose) {
        return warehouseMapper.findAllWarehuose(warehuose);
    }

    @Override
    public int deleteWarehuose(Integer warehouseId) {
        return warehouseMapper.deleteWarehuose(warehouseId);
    }

    @Override
    public int addWarehuose(Warehuose warehuose) {
        return warehouseMapper.addWarehuose(warehuose);
    }


    @Override
    public int count(Warehuose warehuose) {
        return warehouseMapper.count(warehuose);
    }

    @Override
    public int editWarehouse(Warehuose warehuose) {
        return warehouseMapper.editWarehouse(warehuose);
    }
}
